home *** CD-ROM | disk | FTP | other *** search
/ GEGA 010 / GEGA010.iso / Mods / Doom 3 / BloodyScreme / bloodymess.pk4 / def / weapon_flashlight.def < prev    next >
Text File  |  2004-08-04  |  8KB  |  534 lines

  1. /***********************************************************************
  2.  
  3.  
  4.     weapon_flashlight.def
  5.  
  6.  
  7. ***********************************************************************/
  8.  
  9.  
  10. export fred {
  11.  
  12.     // Flashlight
  13.  
  14.     options -prefix FLASHLIGHT_  -keep flash -parent flash Flashlight
  15.  
  16.  
  17.     mesh    models/items/flashlight/cycles/allanims.mb -dest models/md5/items/flashlight_view/viewflashlight
  18.  
  19.     anim    models/items/flashlight/cycles/allanims.mb -range 1 90 -dest models/md5/items/flashlight_view/idle
  20.  
  21.     anim    models/items/flashlight/cycles/allanims.mb -range 91 102 -dest models/md5/items/flashlight_view/pushbutton
  22.  
  23.     anim    models/items/flashlight/cycles/allanims.mb -range 112 135 -dest models/md5/items/flashlight_view/swing1
  24.  
  25.     anim    models/items/flashlight/cycles/allanims.mb -range 137 162 -dest models/md5/items/flashlight_view/swing2
  26.  
  27.     anim    models/items/flashlight/cycles/allanims.mb -range 165 170 -dest models/md5/items/flashlight_view/lower
  28.  
  29.     anim    models/items/flashlight/cycles/allanims.mb -range 176 190 -dest models/md5/items/flashlight_view/raise
  30.     
  31.  
  32.  
  33.     // world model flashlight
  34.  
  35.     options -prefix PLAYER_FL_ -keep ATTACHER flash -parent flash Flashlight -rename ATTACHER origin -clearorigin
  36.  
  37.     mesh    models/characters/player/mocap/flashlight_idle.mb -dest models/md5/items/flashlight_world/worldflashlight
  38.  
  39.     anim    models/characters/player/mocap/flashlight_idle.mb -dest models/md5/items/flashlight_world/flashlight_idle
  40.  
  41. }
  42.  
  43.  
  44.  
  45. entityDef weapon_flashlight {
  46.  
  47.     "editor_color"                ".3 .3 1"
  48.  
  49.     "editor_mins"                "-16 -16 0"
  50.  
  51.     "editor_maxs"                "16 16 32"
  52.  
  53.     "editor_usage"                "Flashlight"
  54.  
  55.     "editor_rotatable"            "1"
  56.  
  57.  
  58.     "model"                        "models/items/flashlight/flashlight2_world.lwo"
  59.  
  60.  
  61.  
  62.     "spawnclass"                "idItem"
  63.  
  64.     "size"                        "32 32 32"
  65.  
  66.     "model_view"                "viewmodel_flashlight"
  67.  
  68.     "model_world"                 "worldmodel_flashlight"
  69.  
  70.     "joint_attach"                "FL_ATTACHER"
  71.  
  72.  
  73.     "inv_name"                    "Flashlight"
  74.  
  75.     "inv_weapon"                "weapon_flashlight"
  76.  
  77.     "inv_item"                    "5"
  78.  
  79.  
  80.  
  81.     "icon"                        "guis/assets/hud/wpn_10"
  82.     
  83.  
  84.  
  85.  
  86.     "impact_damage_effect"        "1"
  87.     
  88.  
  89.  
  90.     "hide_time"                    "0.3"        // time to hide weapon when talking to npcs or looking at guis
  91.  
  92.  
  93.     "hide_distance"                "-15"    // distance to offset weapon when talking to npcs or looking at guis
  94.  
  95.  
  96.  
  97.     "weapon_scriptobject"        "weapon_flashlight"
  98.  
  99.     "def_melee"                    "damage_flashlight"
  100.  
  101.     "melee_distance"            "48"
  102.  
  103.     "ammoType"                    ""
  104.  
  105.  
  106.  
  107.  
  108.     "ammoRequired"                "0"
  109.  
  110.     "clipSize"                    "0"
  111.  
  112.     "mtr_flashShader"            "lights/flashlight5"
  113.  
  114.     "flashColor"                "1 1 1"
  115.  
  116.     "flashTime"                    "0.016"
  117.  
  118.     "flashRadius"                "400"
  119.  
  120.     "silent_fire"                "1"
  121.  
  122.     "flashAngle"                "22.0"
  123.  
  124.     "flashTarget"                "0 0 1280"
  125.  
  126.     "flashUp"                    "0 640 0"
  127.  
  128.     "flashRight"                "-640 0 0"
  129.  
  130.     "flashPointLight"            "0"
  131.  
  132.  
  133.     "snd_acquire"                "flashlight_pickup"
  134.  
  135.     // MP
  136.  
  137.     "skin_on"                    "skins/models/weapons/flashlight_on"
  138.  
  139.     "skin_on_invis"                "skins/models/weapons/flashlight_on_invis"
  140.  
  141.     "skin_off"                    "skins/models/weapons/flashlight_off"
  142.  
  143.     "skin_off_invis"            "skins/models/weapons/flashlight_off_invis"
  144. }
  145.  
  146. entityDef moveable_item_flashlight {
  147.  
  148.     "inherit"                    "weapon_flashlight"
  149.     "spawnclass"                "idMoveableItem"
  150.     "density"                    "0.05"
  151.     "friction"                    "0.2"
  152.     "bouncyness"                "0"
  153. }
  154.  
  155.  
  156. model worldmodel_flashlight {
  157.  
  158.     mesh                        models/md5/items/flashlight_world/worldflashlight.md5mesh
  159.  
  160.  
  161.     anim raise                     models/md5/items/flashlight_world/flashlight_idle.md5anim
  162.  
  163.     anim idle                     models/md5/items/flashlight_world/flashlight_idle.md5anim
  164.  
  165.     anim aim                    models/md5/items/flashlight_world/flashlight_idle.md5anim
  166.  
  167.     anim fire                    models/md5/items/flashlight_world/flashlight_idle.md5anim
  168.  
  169.     anim reload                    models/md5/items/flashlight_world/flashlight_idle.md5anim
  170.  
  171.     anim noammo                    models/md5/items/flashlight_world/flashlight_idle.md5anim
  172.  
  173.     anim putaway                models/md5/items/flashlight_world/flashlight_idle.md5anim
  174. }
  175.  
  176. model viewmodel_flashlight {
  177.  
  178.     mesh                        models/md5/items/flashlight_view/viewflashlight.md5mesh
  179.     offset                        ( -7 2 16 )
  180.  
  181.  
  182.  
  183.     anim raise                    models/md5/items/flashlight_view/raise.md5anim {
  184.         frame    1                sound_weapon flashlight_raise
  185.     }
  186.  
  187.  
  188.     anim idle                     models/md5/items/flashlight_view/idle.md5anim
  189.  
  190.     anim fire1                     models/md5/items/flashlight_view/swing1.md5anim
  191.  
  192.     anim fire2                     models/md5/items/flashlight_view/swing2.md5anim
  193.  
  194.     anim putaway                models/md5/items/flashlight_view/lower.md5anim
  195.  
  196.     anim reload                    models/md5/items/flashlight_view/pushbutton.md5anim
  197.  
  198.     anim noammo                    models/md5/items/flashlight_view/idle.md5anim
  199. }
  200.  
  201. entityDef    damage_flashlight {
  202.  
  203.  
  204.  
  205.     "damage"            "40" //may31 -Tim may be too high
  206.  
  207.     "kickDir"            "-1 0 0"
  208.  
  209.  
  210.     "mtr_blob"            "genericDamage"
  211.  
  212.     "blob_time"            "300"
  213.  
  214.     "blob_size"            "400"
  215.  
  216.     "blob_offset_x"        "400"
  217.  
  218.  
  219.     "gib"                "0"
  220.  
  221.     "smoke_wound_flesh"    "burstysquirt.prt"
  222.     
  223.  
  224.  
  225.     "knockback"            "20"
  226.  
  227.     "push"                "15000"
  228.  
  229.  
  230.     "kick_time"            "400"
  231.  
  232.     "kick_amplitude"    "1"
  233.  
  234.  
  235.     "dv_time"            "100"
  236.     
  237.  
  238.  
  239.     "snd_flesh"                    "flashlight_impact"
  240.  
  241.     "snd_metal"                    "monster_zombie_fat_wrench"
  242.  
  243.     "snd_ricochet"                "monster_zombie_fat_wrench"    // need this
  244.  
  245.     "snd_stone"                    "monster_zombie_fat_wrench"
  246.  
  247.     "snd_wood"                    "flashlight_impact"
  248.  
  249.     "snd_cardboard"                "flashlight_impact"
  250.  
  251.     "snd_glass"                    "monster_zombie_fat_wrench"
  252. //
  253.     "snd_liquid"                "bullet_impact_liquid"
  254.  
  255.     "snd_plastic"                "flashlight_impact"
  256.     
  257.  
  258.  
  259.     "snd_hit"            "flashlight_impact"        // TEMP
  260.  
  261.     "snd_miss"            "fist_whoosh"            // TEMP
  262.  
  263.     "snd_hit_berserk"    "fist_gorepunch"
  264.  
  265.  
  266. }
  267.  
  268.  
  269.  
  270.  
  271.  
  272. material lights/flashlight5broken 
  273. {
  274.  
  275.     lightFalloffImage    makeIntensity( lights/flashoff.tga )
  276.  
  277.     {
  278.  
  279.         map    lights/flashlight5broken.tga
  280.  
  281.         zeroClamp
  282.  
  283.         //rotate    time * -.01
  284.  
  285.         //colored
  286.         rgb        xray02table[ time * .5 ] * parm3
  287.  
  288.     }
  289.  
  290. }
  291.  
  292.  
  293.  
  294.  
  295. material lights/flashlight5 
  296. {
  297.  
  298.     lightFalloffImage    makeIntensity( lights/flashoff.tga )
  299.  
  300.     {
  301.         map    lights/flashlight5.tga
  302.  
  303.         zeroClamp
  304.  
  305.         //rotate    time * -.01
  306.  
  307.         //colored
  308.         rgb        bathroomtable[ time * .05 ] * parm3
  309.  
  310.     }
  311.  
  312. }
  313.  
  314.  
  315.  
  316.  
  317. material lights/flashlight5gore 
  318. {
  319.  
  320.     lightFalloffImage    makeIntensity( lights/flashoff.tga )
  321.  
  322.     {
  323.  
  324.         map    lights/flashlight5gore.tga
  325.  
  326.         zeroClamp
  327.  
  328.         //colored
  329.         rgb        bathroomtable[ time * .05 ] * parm3
  330.  
  331.     }
  332.  
  333. }
  334.  
  335.  
  336.  
  337.  
  338. material models/items/flashlight/flare 
  339. {
  340.  
  341.     translucent
  342.     deform sprite
  343.  
  344.     {
  345.  
  346.         blend
  347.             add
  348.  
  349.         map                models/items/flashlight/flare.tga
  350.  
  351.     }
  352.  
  353. }
  354.  
  355.  
  356.  
  357.  
  358. material models/items/flashlight/beam1 
  359. {
  360.  
  361.     translucent
  362.  
  363.     deform tube
  364.     {
  365.  
  366.         maskcolor
  367.         map makealpha(models/items/flashlight/beam1.tga)
  368.  
  369.         //    scroll    time * 3 , time * 0
  370.     
  371.         forcehighquality
  372.     
  373.     }
  374.  
  375.     {
  376.  
  377.         blend gl_dst_alpha, gl_one
  378.  
  379.             maskalpha
  380.         map models/items/flashlight/dust
  381.  
  382.         scale     4 , 4
  383.  
  384.         rotate time * -.02
  385.  
  386.         scroll    time * .001 , time * .001
  387.  
  388.     }
  389.  
  390.  
  391. }
  392.  
  393.  
  394.  
  395.  
  396. material models/items/flashlight/flare2 
  397. {
  398.  
  399.     translucent
  400.  
  401.     deform sprite
  402.     {
  403.  
  404.         blend
  405.             add
  406.  
  407.         map                models/items/flashlight/flare2.tga
  408.  
  409.     }
  410.  
  411. }
  412.  
  413.  
  414.  
  415.  
  416. material models/items/flashlight/beam2 
  417. {
  418.  
  419.     translucent
  420.  
  421.     deform tube
  422.     {
  423.  
  424.         maskcolor
  425.         map makealpha(models/items/flashlight/beam1.tga)
  426.  
  427.         //    scroll    time * 3 , time * 0
  428.     
  429.         forcehighquality
  430.  
  431.     
  432.     
  433.     }
  434.  
  435.     {
  436.  
  437.         blend gl_dst_alpha, gl_one
  438.  
  439.             maskalpha
  440.         map models/items/flashlight/dust
  441.  
  442.         scale     4 , 4
  443.  
  444.         rotate time * -.02
  445.  
  446.         scroll    time * .001 , time * .001
  447.  
  448.     }
  449.  
  450.  
  451. }
  452.  
  453.  
  454.  
  455.  
  456. material models/items/flashlight/bulb 
  457. {
  458.  
  459.     translucent
  460.  
  461.     {
  462.  
  463.         blend
  464.             add
  465.  
  466.         map                models/items/flashlight/bulb.tga
  467.         
  468.     }
  469.  
  470. }
  471.  
  472.  
  473.  
  474.  
  475. skin skins/models/weapons/flashlight_off 
  476. {
  477.  
  478.     models/items/flashlight/flare textures/common/nodraw
  479.  
  480.     models/items/flashlight/beam1 textures/common/nodraw
  481.  
  482.     models/items/flashlight/flare2 textures/common/nodraw
  483.  
  484.     models/items/flashlight/beam2 textures/common/nodraw
  485.  
  486.     models/items/flashlight/bulb textures/common/nodraw
  487.  
  488. }
  489.  
  490.  
  491.  
  492.  
  493. skin skins/models/weapons/flashlight_off_invis 
  494. {
  495.  
  496.     models/items/flashlight/flashlight2 models/items/flashlight/flashlight2_invis
  497.  
  498.     models/characters/player/arm2    models/characters/player/arm2_invis
  499.  
  500.     models/items/flashlight/flare textures/common/nodraw
  501.  
  502.     models/items/flashlight/beam1 textures/common/nodraw
  503.  
  504.     models/items/flashlight/flare2 textures/common/nodraw
  505.  
  506.     models/items/flashlight/beam2 textures/common/nodraw
  507.  
  508.     models/items/flashlight/bulb textures/common/nodraw
  509.  
  510. }
  511.  
  512.  
  513.  
  514.  
  515. skin skins/models/weapons/flashlight_on 
  516. {
  517.  
  518. }
  519.  
  520.  
  521.  
  522.  
  523. skin skins/models/weapons/flashlight_on_invis 
  524. {
  525.  
  526.     models/items/flashlight/flashlight2 models/items/flashlight/flashlight2_invis
  527.  
  528.     models/characters/player/arm2
  529.     models/characters/player/arm2_invis
  530.  
  531. }
  532.  
  533.  
  534.